﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IndyMosaic.Models.Blog
{
    public interface IBlogRepository
    {
        #region Entry
        Entry GetEntry(int id);
        IQueryable<Entry> ListAllEntries();
        IQueryable<Entry> ListAllByAuthor(Guid authorID);
        IQueryable<Entry> ListLatestTopNEntries(int numberOfEntries);
        #endregion

        string GetFeed(IEnumerable<Entry> entries, string baseUrl, System.Web.Mvc.UrlHelper urlHelper);
        
        #region Comment
        Comment GetComment(int commentID);
        #endregion

        void Add(Entry entry);
        void Add(Comment comment);
        void Save();

        
    }
}
